import request from '@/utils/request';

import type { ISearchParams } from '@/types/request';

// 获取讲师列表
export function searchTeacher(options: Omit<ISearchParams, 'total'>) {
  let params: Omit<ISearchParams, 'total'> = {
    page: options.page,
    size: options.size,
  };
  return request<any, true>(
    `/teacher${options?.condition ? '/' + options.condition : ''}`,
    { params }
  );
}

